package cn.edu.ustc.xrovers.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table
public class Evaluating {

	private Integer id;
	private String selected;//指标筛选之后剩余的指标，用","隔开
	private Parameter parameter;
	private Analyst analyst;
	
	@ManyToOne
	@JoinColumn(name="Analyst_Id")
	public Analyst getAnalyst() {
		return analyst;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	@ManyToOne
	@JoinColumn(name="Para_Id")
	public Parameter getParameter() {
		return parameter;
	}
	@Column(name="Eva_Selected")
	public String getSelected() {
		return selected;
	}
	
	/*set方法*/
	public void setAnalyst(Analyst analyst) {
		this.analyst = analyst;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setParameter(Parameter parameter) {
		this.parameter = parameter;
	}
	public void setSelected(String selected) {
		this.selected = selected;
	}
	
}
